home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- SoundsSA.js
-
- Encarta Virtual Globe 1999
-
- (c) Copyright Microsoft Corporation 1998
-
- Populates the sound table for South America. The sound table is comprised
- of a Lat,Long location where the sound is associated with, and an index
- number into the Audio Man control which has the path to the actual sound
- file. See FlightSounds.xls for the table of sound file and Lat,Long
- matchings.
-
- Also includes fusion related variables declarations and functions
- because the number of fusion nodes vary between Fly files.
-
- This file is to be included by FlySAm.htm
-
- Owner = WHsu
- *****************************************************************************/
- var g_numFusionSrcNodes = 19;
- var g_FusionSrcNodes = new Array(g_numFusionSrcNodes); // node object for Fusion URLWav
- var g_fFusionSrcNodeLoaded = new Array(g_numFusionSrcNodes); // if set, node loaded
-
- function LoadFusionMedia()
- {
- var i;
- for ( i=0; i < g_numFusionSrcNodes; i++ )
- {
- g_fFusionSrcNodeLoaded[i] = false;
- }
- g_FusionSrcNodes[0] = MediaGraph.Nodes("FusionSrcA");
- g_FusionSrcNodes[1] = MediaGraph.Nodes("FusionSrcB");
- g_FusionSrcNodes[2] = MediaGraph.Nodes("FusionSrcC");
- g_FusionSrcNodes[3] = MediaGraph.Nodes("FusionSrcD");
- g_FusionSrcNodes[4] = MediaGraph.Nodes("FusionSrcE");
- g_FusionSrcNodes[5] = MediaGraph.Nodes("FusionSrcF");
- g_FusionSrcNodes[6] = MediaGraph.Nodes("FusionSrcG");
- g_FusionSrcNodes[7] = MediaGraph.Nodes("FusionSrcH");
- g_FusionSrcNodes[8] = MediaGraph.Nodes("FusionSrcI");
- g_FusionSrcNodes[9] = MediaGraph.Nodes("FusionSrcJ");
- g_FusionSrcNodes[10] = MediaGraph.Nodes("FusionSrcK");
- g_FusionSrcNodes[11] = MediaGraph.Nodes("FusionSrcL");
- g_FusionSrcNodes[12] = MediaGraph.Nodes("FusionSrcM");
- g_FusionSrcNodes[13] = MediaGraph.Nodes("FusionSrcN");
- g_FusionSrcNodes[14] = MediaGraph.Nodes("FusionSrcO");
- g_FusionSrcNodes[15] = MediaGraph.Nodes("FusionSrcP");
- g_FusionSrcNodes[16] = MediaGraph.Nodes("FusionSrcQ");
- g_FusionSrcNodes[17] = MediaGraph.Nodes("FusionSrcR");
- g_FusionSrcNodes[18] = MediaGraph.Nodes("FusionSrcS");
-
- MediaGraph.Nodes("FusionSrcA").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcB").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcC").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcD").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcE").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcF").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcG").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcH").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcI").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcJ").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcK").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcL").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcM").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcN").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcO").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcP").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcQ").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcR").LoadMedia(false);
- MediaGraph.Nodes("FusionSrcS").LoadMedia(false);
- }
-
- g_SoundTable[g_Continent_SA] = new Array(21);
-
- g_SoundTable[g_Continent_SA][0] = new Array(3);
- g_SoundTable[g_Continent_SA][1] = new Array(3);
- g_SoundTable[g_Continent_SA][2] = new Array(3);
- g_SoundTable[g_Continent_SA][3] = new Array(3);
- g_SoundTable[g_Continent_SA][4] = new Array(3);
- g_SoundTable[g_Continent_SA][5] = new Array(3);
- g_SoundTable[g_Continent_SA][6] = new Array(3);
- g_SoundTable[g_Continent_SA][7] = new Array(3);
- g_SoundTable[g_Continent_SA][8] = new Array(3);
- g_SoundTable[g_Continent_SA][9] = new Array(3);
- g_SoundTable[g_Continent_SA][10] = new Array(3);
- g_SoundTable[g_Continent_SA][11] = new Array(3);
- g_SoundTable[g_Continent_SA][12] = new Array(3);
- g_SoundTable[g_Continent_SA][13] = new Array(3);
- g_SoundTable[g_Continent_SA][14] = new Array(3);
- g_SoundTable[g_Continent_SA][15] = new Array(3);
- g_SoundTable[g_Continent_SA][16] = new Array(3);
- g_SoundTable[g_Continent_SA][17] = new Array(3);
- g_SoundTable[g_Continent_SA][18] = new Array(3);
- g_SoundTable[g_Continent_SA][19] = new Array(3);
- g_SoundTable[g_Continent_SA][20] = new Array(3);
-
-
- g_SoundTable[g_Continent_SA][0][g_indexLat] = -33;
- g_SoundTable[g_Continent_SA][0][g_indexLong] = -65;
- g_SoundTable[g_Continent_SA][0][g_indexSound] = 1; // F172383A -33 -65 172383 Argentina
-
- g_SoundTable[g_Continent_SA][1][g_indexLat] = -33;
- g_SoundTable[g_Continent_SA][1][g_indexLong] = -65;
- g_SoundTable[g_Continent_SA][1][g_indexSound] = 2; // F172384A -33 -65 172384 Argentina
-
- g_SoundTable[g_Continent_SA][2][g_indexLat] = -33;
- g_SoundTable[g_Continent_SA][2][g_indexLong] = -65;
- g_SoundTable[g_Continent_SA][2][g_indexSound] = 3; // F172386A -33 -65 172386 Argentina
-
- g_SoundTable[g_Continent_SA][3][g_indexLat] = -15;
- g_SoundTable[g_Continent_SA][3][g_indexLong] = -65;
- g_SoundTable[g_Continent_SA][3][g_indexSound] = 4; // F172400A -15 -65 172400 Bolivia
-
- g_SoundTable[g_Continent_SA][4][g_indexLat] = -5;
- g_SoundTable[g_Continent_SA][4][g_indexLong] = -8;
- g_SoundTable[g_Continent_SA][4][g_indexSound] = 5; // F172404A -5 -8 172404 Brazil (Candomble)
-
- g_SoundTable[g_Continent_SA][5][g_indexLat] = -5;
- g_SoundTable[g_Continent_SA][5][g_indexLong] = -8;
- g_SoundTable[g_Continent_SA][5][g_indexSound] = 6; // F172405A -5 -8 172405 Brazil (samba)
-
- g_SoundTable[g_Continent_SA][6][g_indexLat] = -35;
- g_SoundTable[g_Continent_SA][6][g_indexLong] = -72;
- g_SoundTable[g_Continent_SA][6][g_indexSound] = 7; // F172422A -35 -72 172422 Chile
-
- g_SoundTable[g_Continent_SA][7][g_indexLat] = 5;
- g_SoundTable[g_Continent_SA][7][g_indexLong] = -74;
- g_SoundTable[g_Continent_SA][7][g_indexSound] = 8; // F172426A 5 -74 172426 Colombia (+)
-
- g_SoundTable[g_Continent_SA][8][g_indexLat] = 5;
- g_SoundTable[g_Continent_SA][8][g_indexLong] = -74;
- g_SoundTable[g_Continent_SA][8][g_indexSound] = 9; // F172427A 5 -74 172427 Colombia (+)
-
- g_SoundTable[g_Continent_SA][9][g_indexLat] = 5;
- g_SoundTable[g_Continent_SA][9][g_indexLong] = -74;
- g_SoundTable[g_Continent_SA][9][g_indexSound] = 10; // F172428A 5 -74 172428 Colombia (+)
-
- g_SoundTable[g_Continent_SA][10][g_indexLat] = 2;
- g_SoundTable[g_Continent_SA][10][g_indexLong] = -55;
- g_SoundTable[g_Continent_SA][10][g_indexSound] = 11; // F172446A 2 -55 172446 French Guiana
-
- g_SoundTable[g_Continent_SA][11][g_indexLat] = 2;
- g_SoundTable[g_Continent_SA][11][g_indexLong] = -55;
- g_SoundTable[g_Continent_SA][11][g_indexSound] = 12; // F172447A 2 -55 172447 French Guiana-
-
- g_SoundTable[g_Continent_SA][12][g_indexLat] = -8;
- g_SoundTable[g_Continent_SA][12][g_indexLong] = -75;
- g_SoundTable[g_Continent_SA][12][g_indexSound] = 13; // F172537A -8 -75 172537 Peru
-
- g_SoundTable[g_Continent_SA][13][g_indexLat] = 6;
- g_SoundTable[g_Continent_SA][13][g_indexLong] = -65;
- g_SoundTable[g_Continent_SA][13][g_indexSound] = 14; // F172604A 6 -65 172604 Venezuela- (+)
-
- g_SoundTable[g_Continent_SA][14][g_indexLat] = 6;
- g_SoundTable[g_Continent_SA][14][g_indexLong] = -65;
- g_SoundTable[g_Continent_SA][14][g_indexSound] = 15; // F172976A 6 -65 172976 Venezuela (+)
-
- g_SoundTable[g_Continent_SA][15][g_indexLat] = -35;
- g_SoundTable[g_Continent_SA][15][g_indexLong] = -72;
- g_SoundTable[g_Continent_SA][15][g_indexSound] = 16; // F173218A -35 -72 173218 Chile
-
- g_SoundTable[g_Continent_SA][16][g_indexLat] = 12;
- g_SoundTable[g_Continent_SA][16][g_indexLong] = -86;
- g_SoundTable[g_Continent_SA][16][g_indexSound] = 17; // F173219A 12 -86 173219 Nicaragua (+)
-
- g_SoundTable[g_Continent_SA][17][g_indexLat] = -32;
- g_SoundTable[g_Continent_SA][17][g_indexLong] = -57;
- g_SoundTable[g_Continent_SA][17][g_indexSound] = 18; // F173222A -32 -57 173222 Uruguay
-
- g_SoundTable[g_Continent_SA][18][g_indexLat] = -2;
- g_SoundTable[g_Continent_SA][18][g_indexLong] = -78;
- g_SoundTable[g_Continent_SA][18][g_indexSound] = 19; // F173230A -2 -78 173230 Ecuador
-
- g_SoundTable[g_Continent_SA][19][g_indexLat] = -2;
- g_SoundTable[g_Continent_SA][19][g_indexLong] = -78;
- g_SoundTable[g_Continent_SA][19][g_indexSound] = 20; // F173231A -2 -78 173231 Ecuador
-
- g_SoundTable[g_Continent_SA][20][g_indexLat] = -23;
- g_SoundTable[g_Continent_SA][20][g_indexLong] = -58;
- g_SoundTable[g_Continent_SA][20][g_indexSound] = 21; // F173232A -23 -58 173232 Paraguay
-
-